﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DevInfo.aspx.cs" Inherits="BasicInfo_DevInfo" %>

<!DOCTYPE html> 
<html> 
	<head runat="server"> 
        <meta charset="utf-8">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
	    <title>延安联通数据中心</title> 
        <link href="../Content/jquery.mobile-1.2.0.min.css" rel="stylesheet" type="text/css" />
        <script src="../Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
        <script src="../Scripts/jquery.mobile-1.2.0.min.js" type="text/javascript"></script>
        <script src="../Scripts/jquery.validate.min.js" type="text/javascript"></script>
        <link href="../Content/Default.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            $.mobile.ajaxEnabled = false;
            $(function () {
                $("#form1").validate({
                    rules: {
                        devTxT: "required"                        
                    },
                    messages: {
                        devTxT: "请先输入发展人"                        
                    }
                });
            });
        </script>
    </head> 
<body>     
    <!-- start page -->
    <div data-role="page">

	<!-- start header -->
	<div data-role="header" data-theme="c" data-position="inline" data-backbtn="false">
        <a href="../desktop.aspx" data-icon="home">桌面</a>
		<h1>UDC</h1>
        <a href="../default.aspx" data-icon="forward">退出</a>
	</div>
	<!-- end header -->

	<!-- start content -->
	<div data-role="content">	
        <form id="form1" runat="server" action="DevInfo.aspx" method="post"> 
        <asp:Literal runat="server" ID="msg"></asp:Literal>   
        <asp:ListView runat="server" ID="DevList">
            <LayoutTemplate>
                <ul data-role="listview" data-inset="true" data-split-icon="delete" data-split-theme="c">                    
                    <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
                </ul>
            </LayoutTemplate>
            <ItemTemplate>
                <li>                    
                    <a><%# Eval("dvname")%></a>
                    <a href='<%#"DevInfo.aspx?dvid="+Eval("dvid") %>' data-rel="popup" data-position-to="window" data-transition="pop">删除</a>
                </li>
            </ItemTemplate>
        </asp:ListView>   
        <fieldset style="border:1px solid #EEDDEE; padding:5px 10px;" class="ui-grid-a">   
            <div class="ui-block-a">      
            <asp:TextBox runat="server" ID="devTxT" MaxLength="10" CssClass="required"></asp:TextBox></div>
            <div class="ui-block-b">
            <asp:Button runat="server" ID="AddBtn" data-role="button" 
              data-theme="c" onclick="AddBtn_Click" data-inline="true" Text="新增发展人"/></div>
        </fieldset> 
        </form>  
	</div>
	<!-- end content -->
	
    </div>
    <!-- end page -->
    
</body>
</html>
